﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MyShopCity.Models
{
    /// <summary>
    /// 商品
    /// </summary>
    public class Commodity
    {
        public int ID { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string CommodityName { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 商品单位
        /// </summary>
        public int CommodityUnit { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        public string ImageUrl { get; set; }
        /// <summary>
        /// 商品状态
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        public virtual List<OrderSub> OrderSubs { get; set; }

        public Commodity()
        {
            this.OrderSubs = new List<OrderSub>();
        }
    }
}